package com.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @RequestMapping("/test")
    public String test(){
        String str = "hello,world";
        return "这是测试方法";
    }

    @RequestMapping("/findById")
    public String findById(int id){
        return "success";
    }
    @RequestMapping("/test3")
    public String test3(int id){

        return "success";
    }


    @RequestMapping("/findByName")
    public String findByName(String name){
        return "success";
    }
}
